<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>53 ES8对象方法扩展</title>
</head>

<body>
    <script>
        const school = {
            name: 'atguigu',
            cities: ['bj', 'sh', 'sz'],
            xueke: ['java', 'web', 'bd', 'run']
        };

        // console.log(Object.keys(school));
        // console.log(Object.values(school));
        // console.log(Object.entries(school));
        // const m = new Map(Object.entries(school));
        // console.log(m);
        // console.log(m.get('cities'));

        // console.log(Object.getOwnPropertyDescriptors(school));

        const obj = Object.create(null, {
            name: {
                value: 'atguigu',
                writable: true,
                configurable: true,
                enumerable: true
            }
        });
    </script>
</body>

</html>